<?php
/**
 * 后台 通用服务接口
 *
 * Author: Zeon
 * Date: 2018/4/20
 * Created by Panxsoft.
 */
use Illuminate\Support\Facades\Route;

Route::group([
    'prefix'=>'/service',
    'namespace'=>'Admin'
], function(){
    /**
     * @see \App\Http\Controllers\Admin\BosImageUploadController::store()
     */
    Route::post('/bos-img-upload', 'BosImageUploadController@store');

    /**
     * @see \App\Http\Controllers\Admin\BosImageUploadController::storeMulti()
     */
    Route::post('/bos-img-upload-multi', 'BosImageUploadController@storeMulti');

    /**
     * @see \App\Http\Controllers\Admin\TaobaoItemDetailGetController::crawlerFromUrl()
     */
    Route::post('/taobao-item-from-url', 'TaobaoItemDetailGetController@crawlerFromUrl');

    /**
     * @see \App\Http\Controllers\Admin\IViewFileUploadController::store()
     */
    Route::post('/iview-file', 'IViewFileUploadController@store');

    /**
     * @see \App\Http\Controllers\Admin\IViewFileUploadController::destroy()
     */
    Route::delete('/iview-file', 'IViewFileUploadController@destroy');

    /**
     * bos 直传
     *
     * @see \App\Http\Controllers\Admin\BosUploader\TokenController::index
     */
    Route::get('/bos/token', 'BosUploader\TokenController@index')->name('bos-token');
});


